﻿<!DOCTYPE html >
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="MIUI,MIUI8,Android,MIUI刷机,小米手机,小米刷机,安卓论坛" />
    <meta name="description" content="MIUI是基于Android原生系统和针对中国用户使用习惯开发的Android Rom，MIUI深受手机发烧友喜爱。" />
    <title>MIUI官方网站</title>
    <link rel="stylesheet" href="{{ asset('miui/css/index.css') }}" />
    <link rel="icon" href="/favicon.ico" />
    <script type="text/javascript" src="{{ url('publics/jquery-1.8.3.min.js') }}"></script>
    <script src="{{ asset('miui/js/jquery.1.7.1.min.js') }} " type="text/javascript"></script>
    <script src="{{ asset('miui/js/jquery.mousewheel.js') }} " type="text/javascript"></script>
    <script src="{{ asset('miui/js/common.js') }} " type="text/javascript"></script>
</head>

<body>
    <div class="header_on">
        <div class="header">
            <div class="top">
            <p class="top_left">
                <a rel="nofollow" href="{{ asset('/home') }}" >小米商城</a><span class="sep">|</span>
                <a rel="nofollow" href="{{ asset('/home/miui') }}" target="_blank">MIUI</a><span class="sep">|</span>
                <a rel="nofollow" href="{{ asset('/home/miliao') }}" target="_blank">米聊</a><span class="sep">|</span>
                <a rel="nofollow" href="{{ asset('/home/cloud') }}" target="_blank">云服务</a><span class="sep">|</span>
                <a rel="nofollow" href="{{ asset('/home/yidong') }}" target="_blank">小米网移动版</a><span class="sep">|</span>
                <a rel="nofollow" href="{{ asset('/home/issue') }}" target="_blank">问题反馈</a>
            </p>
            <p class="top_rt">
                <a href="{{ url('home/login') }}" class="login">登录</a>
            </p>
        </div>
        </div>
    </div>
 <script type="text/javascript">
    $(function() {
       // $(".banners a").on("click", function(event) {
       //     var index = $(".banners a").index($(this));
       //     if (index == 0) {
       //         event.preventDefault();
       //         var url = "video_src_" + index;
       //         showDialog(url);
       //     }
       // });
        var video_srcs = {};
        video_srcs.video_src_0 = '<img class="dialog_close" src="{{ asset('miui/picture/dialog_close.png') }}"><object type="application/x-shockwave-flash" data="http://player.youku.com/player.php/sid/XMTMwODUxNzAwMA==/v.swf" width="100%" height="100%" id="youku-player"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://player.youku.com/player.php/sid/XMTMwODUxNzAwMA==/v.swf"><param name="flashvars" value="imglogo=&amp;paid=0&amp;partnerId=91a0d45b32079123&amp;isAutoPlay=true&amp;styleid=0"></object>';
        video_srcs.video_src_1 = '<img class="dialog_close" src="{{ asset('miui/picture/dialog_close.png') }}"><object type="application/x-shockwave-flash" data="http://player.youku.com/player.php/sid/XMTMwODQ0MTQzNg==/v.swf" width="100%" height="100%" id="youku-player"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://player.youku.com/player.php/sid/XMTMwODQ0MTQzNg==/v.swf"><param name="flashvars" value="imglogo=&amp;paid=0&amp;partnerId=91a0d45b32079123&amp;isAutoPlay=true&amp;styleid=0"></object>';

        function showDialog(url) {
            $(".z_index_dialog").show();
            var content_width = $(".z_index_dialog").width() / 2 - 300;
            var content_height = $(".z_index_dialog").height() / 2 - 250;
            $(".dialog_content").css("left", content_width);
            $(".dialog_content").css("top", content_height);
            $(".dialog_content").html(video_srcs[url]);
            $(".dialog_content").show();
            $(".dialog_close").bind("click", dialogClose);
        }

        function dialogClose() {
            $(".z_index_dialog").hide();
            $(".dialog_content").hide();
            $(".dialog_content").html("");
            $(".dialog_close").unbind("click", dialogClose);
        }

        $(".points>div").on("click", function(){
            var num = $(".points>div").index($(this));
            clearInterval(turn);
            $('.lunbo_container').stop(true).animate({
                'left': '-' + num * width + 'px'
            }, 600, lunbo);
            index = num;
            $(".current_pointer").removeClass("current_pointer");
            $(".points>div").eq(index).addClass("current_pointer");
        });

        //根据屏幕设置content_body高度
        function setContentBodyPadding(){
            var screenHeight = window.innerHeight;
            if (screenHeight <= 785) {
                $(".content_body").css("padding","55px 0");
            }else{
                $(".content_body").css("padding","130px 0");
            }
        }
        setContentBodyPadding();
    })
    </script>
 <div class="content_on">
    <div class="lunbo">
        <div class="lunbo_container">
            @foreach($list as $v)
            <a href="" target="_blank" title="刷票神器">
                <div>
                    <img src="{{ url('menu')}}/{{ $v->maxpic }}" class="imgg">
                    <div class="content_header">
                        <h2>刷票神器</h2>
                    </div>
                </div>
            </a>
            @endforeach
            <!-- ============== 图片轮播 ========== -->
                <script type="text/javascript">
                    //节点
                    var list = $(".imgg");
                    var m=0;
                    //0-4
                    setInterval(function (){
                        // 让哪张图片显示 
                        for(var i=0;i<list.length;i++){
                            //m==i的图片显示 
                            if(m==i){
                                list[i].style.display = "block";
                            //其他图片隐藏 
                            }else{
                                list[i].style.display = "none";
                            }
                        }       
                        // console.log(m);
                        //m自增 
                        m++;
                        // 判断m的有效性
                        if(m>=list.length){
                            m=0;
                        }

                    },2000);
                </script>   
        </div>
        <div class="points"><div class=""></div><div class=""></div><div class=""></div></div>
    </div>
    <div class="content_body_on">
        <div class="content_body">
            <ul class="banners clearfix">
                @foreach($list as $v)
            	<li class="banners_li">
                    <a href="">
                        <img src="{{ url('menu')}}/{{ $v->minpic }}"><div>
                            <h3>{{ $v->intro }}</h3>
                            <p>我们的米兔世界</p>
                        </div>
                    </a>
                </li>
                @endforeach
            </ul>
        </div>
    </div>
</div>
<div class="z_index_dialog" style="display: none;"></div>
<div class="dialog_content" style="display: none;"></div><div class="footer_on">
    <div class="footer">
        <ul class="footer_links">
            @foreach($list as $v)
            <li><a target="_blank" href="http://{{ $v->url }}">{{ $v->links }}</a></li>
            @endforeach
            <li class="weixin"><a href="javascript:void(0);">官方微信<img width="150" src="{{ asset('miui/picture/index_89.png') }}"></a></li>
            <li class="language_list">
                <a target="_blank" href="http://www.miui.com">简体中文</a>
                <p class="languages">
                    <a target="_blank" href="http://en.miui.com/" style="font-family: 'microsoft yahei'">English</a>
                    <a target="_blank" href="http://tw.miui.com/">繁體台湾</a>
                    <a target="_blank" href="http://hk.miui.com/">繁體香港</a>
                    <a target="_blank" href="http://www.miui.com">简体中文</a>
                </p>
            </li>
        </ul>
        <p class="copyright">
            Copyright © 2016 MIUI 京ICP备10046444号 | 京公网安备11010802020134号 | 京ICP证110507号
        </p>
    </div>
</div>
<div style="display:none;">
  <script src="{{ asset('miui/js/stat.js') }} " type="text/javascript" language="JavaScript"></script>
    <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js') }} ?3c5ef0d4b3098aba138e8ff4e86f1329";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
</div>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-37617644-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</body>
</html>